<template>
    <!--轮播图-->
    <mt-swipe :auto="4000">
        <mt-swipe-item>1</mt-swipe-item>
        <mt-swipe-item>2</mt-swipe-item>
        <mt-swipe-item>3</mt-swipe-item>
    </mt-swipe>
</template>

<script>
    export default {
        data() {
            return {}
        },
        created(){
              this.getlunbotu();
        },
        methods: {
            getlunbotu() {
             this.$http.get("http://vue.studyit.io/api/getlunbo").then(result=>{
                 console.log(result.body);
                 
             })
                 
             
            }
        }
    }
</script>

<style lang="scss" scoped>
    .mint-swipe {
        height: 200px;
    }

    .mint-swipe-item {
        &:nth-child(1) {
            background-color: red;
        }
        &:nth-child(2) {
            background-color: green;
        }
        &:nth-child(3) {
            background-color: yellow;
        }
    }
</style>